#ifndef MAINWIDGET_H
#define MAINWIDGET_H

#include <QWidget>
#include "mata.h"
#include "widget.h"
#include "cell.h"
#include "game.h"
#include "gameboard.h"
#include "shuoming.h"
#include "mainwindow.h"
#include "music.h"


QT_BEGIN_NAMESPACE
namespace Ui { class mainWidget; }
QT_END_NAMESPACE

class mainWidget : public QWidget
{
    Q_OBJECT

public:
    mainWidget(QWidget *parent = nullptr);
    ~mainWidget();

private slots:
    void on_pushButton_2_clicked();

    void on_pushButton_3_clicked();

    void on_pushButton_4_clicked();

    void on_pushButton_5_clicked();

    void on_pushButton_clicked();

    void on_pushButton_6_clicked();

private:
    Ui::mainWidget *ui;
    //子窗口指针
     mata *m_mata;
    // Widget *m_w;
    GameBoard *m_g;
    shuoming *m_sm;
    MainWindow m_M;
    music *m_m;
    //初始化函数
    void Init();
};
#endif // MAINWIDGET_H
